const express = require('express');
const userRoutes = require('./user.routes');
const checkupRoutes = require('./checkup.routes');

const router = express.Router();

// API状态检查
router.get('/health', (req, res) => {
  res.json({
    success: true,
    message: 'API服务正常运行',
    timestamp: new Date().toISOString(),
    version: '1.0.0'
  });
});

// 用户相关路由
router.use('/users', userRoutes);

// 体检相关路由
router.use('/checkups', checkupRoutes);

// 未来可以添加更多模块路由
// router.use('/patients', patientRoutes);
// router.use('/appointments', appointmentRoutes);
// router.use('/reports', reportRoutes);

module.exports = router;